package com.samphanie.mbg.model.sys;

import com.baomidou.mybatisplus.annotation.TableName;
import com.samphanie.mbg.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;


/**
 * 客户端对象 oauth_client_details
 *
 * @author zsy
 * @date 2021-10-20
 */
@Data
@With
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("oauth_client_details")
@EqualsAndHashCode(callSuper = true)
public class SysClient extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户端ID")
    private String clientId;

    @ApiModelProperty(value = "客户端名称")
    private String clientName;

    @ApiModelProperty(value = "资源ID")
    private String resourceIds;

    @ApiModelProperty(value = "客户端密匙")
    private String clientSecret;

    @ApiModelProperty(value = "权限范围")
    private String scope;

    @ApiModelProperty(value = "授权类型")
    private String authorizedGrantTypes;

    @ApiModelProperty(value = "重定向路径")
    private String webServerRedirectUri;

    @ApiModelProperty(value = "用户权限")
    private String authorities;

    @ApiModelProperty(value = "令牌过期秒数")
    private Integer accessTokenValidity;

    @ApiModelProperty(value = "刷新令牌过期秒数")
    private Integer refreshTokenValidity;

    @ApiModelProperty(value = "附加的信息")
    private String additionalInformation;

    @ApiModelProperty(value = "自动授权")
    private String autoApprove;

}
